# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sqlbrute
pkgver=1.0
pkgrel=8
groups=('blackarch' 'blackarch-fuzzer' 'blackarch-webapp')
pkgdesc='Brute forces data out of databases using blind SQL injection.'
arch=('any')
url='http://www.justinclarke.com/archives/2006/03/sqlbrute.html'
license=('GPL')
depends=('python2')
source=("$pkgname::https://raw.github.com/GDSSecurity/SQLBrute/master/$pkgname.py")
sha512sums=('de974ec69780bf2c71ac01ecf0aaa5521f32713981b4dfa2b96c1ce1d6fdfd5ae123dd7b1669d4259998eee0e4cbeaa89f1694d5f621bea4e5b7e6c63508fa09')

prepare() {
  sed -i 's|/bin/sh|/usr/bin/env python2|' $pkgname
}

package() {
  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
}

